package com.proyectos.model;

import java.io.Serializable;
import java.math.BigDecimal;
import javax.faces.bean.ManagedBean;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;


/**
 *
 * @author Jose
 */
@Entity
@ManagedBean

@NamedQueries({
  
    @NamedQuery(name = "Administrador.findByCodigo", query = "SELECT c FROM Administrador c WHERE upper(c.ccodigo) = :ccodigo"),
    @NamedQuery(name = "Administrador.findAll", query = "SELECT c FROM Administrador c")})
public class Administrador implements Serializable {

    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column
    private BigDecimal ncodigo;
    @Column
    private String ccodigo;
    @Column
    private String cpassword;

    public BigDecimal getNcodigo() {
        return ncodigo;
    }

    public void setNcodigo(BigDecimal ncodigo) {
        this.ncodigo = ncodigo;
    }

    public String getCcodigo() {
        return ccodigo;
    }

    public void setCcodigo(String ccodigo) {
        this.ccodigo = ccodigo;
    }

    public String getCpassword() {
        return cpassword;
    }

    public void setCpassword(String cpassword) {
        this.cpassword = cpassword;
    }

}
